<?php
class Mail {

public $To=null;
public $Subject = null;
public $Headers = array();
public $Message = null;

public function send(){

return @mail($this->To,$this->Subject,$this->Message,implode("\r\n",$this->Headers));
}

public function addHeader($name,$value){
    $this->Headers[]=$name.": ".$value;
}


}
?>